3.202 \(\int x^4 (d+e x^2)^3 (a+b \log (c x^n)) \, dx\)

Optimal. Leaf size=100 \[ \frac {\left (231 d^3 x^5+495 d^2 e x^7+385 d e^2 x^9+105 e^3 x^{11}\right ) \left (a+b \log \left (c x^n\right )\right )}{1155}-\frac {1}{25} b d^3 n x^5-\frac {3}{49} b d^2 e n x^7-\frac {1}{27} b d e^2 n x^9-\frac {1}{121} b e^3 n x^{11} \]

[Out]

-1/25*b*d^3*n*x^5-3/49*b*d^2*e*n*x^7-1/27*b*d*e^2*n*x^9-1/121*b*e^3*n*x^11+1/1155*(105*e^3*x^11+385*d*e^2*x^9+
495*d^2*e*x^7+231*d^3*x^5)*(a+b*ln(c*x^n))

________________________________________________________________________________________

Rubi [A]  time = 0.09, antiderivative size = 100, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, integrand size = 23, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.087, Rules used = {270, 2334} \[ \frac {\left (495 d^2 e x^7+231 d^3 x^5+385 d e^2 x^9+105 e^3 x^{11}\right ) \left (a+b \log \left (c x^n\right )\right )}{1155}-\frac {3}{49} b d^2 e n x^7-\frac {1}{25} b d^3 n x^5-\frac {1}{27} b d e^2 n x^9-\frac {1}{121} b e^3 n x^{11} \]

Antiderivative was successfully verified.

[In]

Int[x^4*(d + e*x^2)^3*(a + b*Log[c*x^n]),x]

[Out]

-(b*d^3*n*x^5)/25 - (3*b*d^2*e*n*x^7)/49 - (b*d*e^2*n*x^9)/27 - (b*e^3*n*x^11)/121 + ((231*d^3*x^5 + 495*d^2*e
*x^7 + 385*d*e^2*x^9 + 105*e^3*x^11)*(a + b*Log[c*x^n]))/1155

Rule 270

Int[((c_.)*(x_))^(m_.)*((a_) + (b_.)*(x_)^(n_))^(p_.), x_Symbol] :> Int[ExpandIntegrand[(c*x)^m*(a + b*x^n)^p,
 x], x] /; FreeQ[{a, b, c, m, n}, x] && IGtQ[p, 0]

Rule 2334

Int[((a_.) + Log[(c_.)*(x_)^(n_.)]*(b_.))*(x_)^(m_.)*((d_) + (e_.)*(x_)^(r_.))^(q_.), x_Symbol] :> With[{u = I
ntHide[x^m*(d + e*x^r)^q, x]}, Simp[u*(a + b*Log[c*x^n]), x] - Dist[b*n, Int[SimplifyIntegrand[u/x, x], x], x]
] /; FreeQ[{a, b, c, d, e, n, r}, x] && IGtQ[q, 0] && IntegerQ[m] &&  !(EqQ[q, 1] && EqQ[m, -1])

Rubi steps

\begin {align*} \int x^4 \left (d+e x^2\right )^3 \left (a+b \log \left (c x^n\right )\right ) \, dx &=\frac {\left (231 d^3 x^5+495 d^2 e x^7+385 d e^2 x^9+105 e^3 x^{11}\right ) \left (a+b \log \left (c x^n\right )\right )}{1155}-(b n) \int \left (\frac {d^3 x^4}{5}+\frac {3}{7} d^2 e x^6+\frac {1}{3} d e^2 x^8+\frac {e^3 x^{10}}{11}\right ) \, dx\\ &=-\frac {1}{25} b d^3 n x^5-\frac {3}{49} b d^2 e n x^7-\frac {1}{27} b d e^2 n x^9-\frac {1}{121} b e^3 n x^{11}+\frac {\left (231 d^3 x^5+495 d^2 e x^7+385 d e^2 x^9+105 e^3 x^{11}\right ) \left (a+b \log \left (c x^n\right )\right )}{1155}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.05, size = 133, normalized size = 1.33 \[ \frac {1}{5} d^3 x^5 \left (a+b \log \left (c x^n\right )\right )+\frac {3}{7} d^2 e x^7 \left (a+b \log \left (c x^n\right )\right )+\frac {1}{3} d e^2 x^9 \left (a+b \log \left (c x^n\right )\right )+\frac {1}{11} e^3 x^{11} \left (a+b \log \left (c x^n\right )\right )-\frac {1}{25} b d^3 n x^5-\frac {3}{49} b d^2 e n x^7-\frac {1}{27} b d e^2 n x^9-\frac {1}{121} b e^3 n x^{11} \]

Antiderivative was successfully verified.

[In]

Integrate[x^4*(d + e*x^2)^3*(a + b*Log[c*x^n]),x]

[Out]

-1/25*(b*d^3*n*x^5) - (3*b*d^2*e*n*x^7)/49 - (b*d*e^2*n*x^9)/27 - (b*e^3*n*x^11)/121 + (d^3*x^5*(a + b*Log[c*x
^n]))/5 + (3*d^2*e*x^7*(a + b*Log[c*x^n]))/7 + (d*e^2*x^9*(a + b*Log[c*x^n]))/3 + (e^3*x^11*(a + b*Log[c*x^n])
)/11

________________________________________________________________________________________

fricas [A]  time = 0.65, size = 167, normalized size = 1.67 \[ -\frac {1}{121} \, {\left (b e^{3} n - 11 \, a e^{3}\right )} x^{11} - \frac {1}{27} \, {\left (b d e^{2} n - 9 \, a d e^{2}\right )} x^{9} - \frac {3}{49} \, {\left (b d^{2} e n - 7 \, a d^{2} e\right )} x^{7} - \frac {1}{25} \, {\left (b d^{3} n - 5 \, a d^{3}\right )} x^{5} + \frac {1}{1155} \, {\left (105 \, b e^{3} x^{11} + 385 \, b d e^{2} x^{9} + 495 \, b d^{2} e x^{7} + 231 \, b d^{3} x^{5}\right )} \log \relax (c) + \frac {1}{1155} \, {\left (105 \, b e^{3} n x^{11} + 385 \, b d e^{2} n x^{9} + 495 \, b d^{2} e n x^{7} + 231 \, b d^{3} n x^{5}\right )} \log \relax (x) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x^4*(e*x^2+d)^3*(a+b*log(c*x^n)),x, algorithm="fricas")

[Out]

-1/121*(b*e^3*n - 11*a*e^3)*x^11 - 1/27*(b*d*e^2*n - 9*a*d*e^2)*x^9 - 3/49*(b*d^2*e*n - 7*a*d^2*e)*x^7 - 1/25*
(b*d^3*n - 5*a*d^3)*x^5 + 1/1155*(105*b*e^3*x^11 + 385*b*d*e^2*x^9 + 495*b*d^2*e*x^7 + 231*b*d^3*x^5)*log(c) +
 1/1155*(105*b*e^3*n*x^11 + 385*b*d*e^2*n*x^9 + 495*b*d^2*e*n*x^7 + 231*b*d^3*n*x^5)*log(x)

________________________________________________________________________________________

giac [A]  time = 0.31, size = 173, normalized size = 1.73 \[ \frac {1}{11} \, b n x^{11} e^{3} \log \relax (x) - \frac {1}{121} \, b n x^{11} e^{3} + \frac {1}{11} \, b x^{11} e^{3} \log \relax (c) + \frac {1}{3} \, b d n x^{9} e^{2} \log \relax (x) + \frac {1}{11} \, a x^{11} e^{3} - \frac {1}{27} \, b d n x^{9} e^{2} + \frac {1}{3} \, b d x^{9} e^{2} \log \relax (c) + \frac {3}{7} \, b d^{2} n x^{7} e \log \relax (x) + \frac {1}{3} \, a d x^{9} e^{2} - \frac {3}{49} \, b d^{2} n x^{7} e + \frac {3}{7} \, b d^{2} x^{7} e \log \relax (c) + \frac {3}{7} \, a d^{2} x^{7} e + \frac {1}{5} \, b d^{3} n x^{5} \log \relax (x) - \frac {1}{25} \, b d^{3} n x^{5} + \frac {1}{5} \, b d^{3} x^{5} \log \relax (c) + \frac {1}{5} \, a d^{3} x^{5} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x^4*(e*x^2+d)^3*(a+b*log(c*x^n)),x, algorithm="giac")

[Out]

1/11*b*n*x^11*e^3*log(x) - 1/121*b*n*x^11*e^3 + 1/11*b*x^11*e^3*log(c) + 1/3*b*d*n*x^9*e^2*log(x) + 1/11*a*x^1
1*e^3 - 1/27*b*d*n*x^9*e^2 + 1/3*b*d*x^9*e^2*log(c) + 3/7*b*d^2*n*x^7*e*log(x) + 1/3*a*d*x^9*e^2 - 3/49*b*d^2*
n*x^7*e + 3/7*b*d^2*x^7*e*log(c) + 3/7*a*d^2*x^7*e + 1/5*b*d^3*n*x^5*log(x) - 1/25*b*d^3*n*x^5 + 1/5*b*d^3*x^5
*log(c) + 1/5*a*d^3*x^5

________________________________________________________________________________________

maple [C]  time = 0.22, size = 602, normalized size = 6.02 \[ \frac {a d \,e^{2} x^{9}}{3}+\frac {3 a \,d^{2} e \,x^{7}}{7}+\frac {3 b \,d^{2} e \,x^{7} \ln \relax (c )}{7}+\frac {b d \,e^{2} x^{9} \ln \relax (c )}{3}+\frac {a \,e^{3} x^{11}}{11}+\frac {a \,d^{3} x^{5}}{5}+\frac {b \,d^{3} x^{5} \ln \relax (c )}{5}+\frac {b \,e^{3} x^{11} \ln \relax (c )}{11}+\frac {\left (105 e^{3} x^{6}+385 d \,e^{2} x^{4}+495 d^{2} e \,x^{2}+231 d^{3}\right ) b \,x^{5} \ln \left (x^{n}\right )}{1155}-\frac {i \pi b d \,e^{2} x^{9} \mathrm {csgn}\left (i c \right ) \mathrm {csgn}\left (i x^{n}\right ) \mathrm {csgn}\left (i c \,x^{n}\right )}{6}-\frac {3 i \pi b \,d^{2} e \,x^{7} \mathrm {csgn}\left (i c \right ) \mathrm {csgn}\left (i x^{n}\right ) \mathrm {csgn}\left (i c \,x^{n}\right )}{14}+\frac {i \pi b d \,e^{2} x^{9} \mathrm {csgn}\left (i x^{n}\right ) \mathrm {csgn}\left (i c \,x^{n}\right )^{2}}{6}+\frac {3 i \pi b \,d^{2} e \,x^{7} \mathrm {csgn}\left (i c \right ) \mathrm {csgn}\left (i c \,x^{n}\right )^{2}}{14}+\frac {3 i \pi b \,d^{2} e \,x^{7} \mathrm {csgn}\left (i x^{n}\right ) \mathrm {csgn}\left (i c \,x^{n}\right )^{2}}{14}-\frac {i \pi b \,d^{3} x^{5} \mathrm {csgn}\left (i c \right ) \mathrm {csgn}\left (i x^{n}\right ) \mathrm {csgn}\left (i c \,x^{n}\right )}{10}-\frac {i \pi b \,e^{3} x^{11} \mathrm {csgn}\left (i c \right ) \mathrm {csgn}\left (i x^{n}\right ) \mathrm {csgn}\left (i c \,x^{n}\right )}{22}+\frac {i \pi b d \,e^{2} x^{9} \mathrm {csgn}\left (i c \right ) \mathrm {csgn}\left (i c \,x^{n}\right )^{2}}{6}-\frac {b \,d^{3} n \,x^{5}}{25}-\frac {b \,e^{3} n \,x^{11}}{121}+\frac {i \pi b \,e^{3} x^{11} \mathrm {csgn}\left (i c \right ) \mathrm {csgn}\left (i c \,x^{n}\right )^{2}}{22}+\frac {i \pi b \,e^{3} x^{11} \mathrm {csgn}\left (i x^{n}\right ) \mathrm {csgn}\left (i c \,x^{n}\right )^{2}}{22}-\frac {i \pi b d \,e^{2} x^{9} \mathrm {csgn}\left (i c \,x^{n}\right )^{3}}{6}-\frac {3 i \pi b \,d^{2} e \,x^{7} \mathrm {csgn}\left (i c \,x^{n}\right )^{3}}{14}+\frac {i \pi b \,d^{3} x^{5} \mathrm {csgn}\left (i c \right ) \mathrm {csgn}\left (i c \,x^{n}\right )^{2}}{10}+\frac {i \pi b \,d^{3} x^{5} \mathrm {csgn}\left (i x^{n}\right ) \mathrm {csgn}\left (i c \,x^{n}\right )^{2}}{10}-\frac {i \pi b \,e^{3} x^{11} \mathrm {csgn}\left (i c \,x^{n}\right )^{3}}{22}-\frac {i \pi b \,d^{3} x^{5} \mathrm {csgn}\left (i c \,x^{n}\right )^{3}}{10}-\frac {3 b \,d^{2} e n \,x^{7}}{49}-\frac {b d \,e^{2} n \,x^{9}}{27} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(x^4*(e*x^2+d)^3*(b*ln(c*x^n)+a),x)

[Out]

1/6*I*Pi*b*d*e^2*x^9*csgn(I*x^n)*csgn(I*c*x^n)^2+1/3*a*d*e^2*x^9+3/7*a*d^2*e*x^7+3/7*ln(c)*b*d^2*e*x^7+1/3*ln(
c)*b*d*e^2*x^9+1/11*a*e^3*x^11+1/5*a*d^3*x^5+1/5*ln(c)*b*d^3*x^5+1/11*ln(c)*b*e^3*x^11-1/6*I*Pi*b*d*e^2*x^9*cs
gn(I*x^n)*csgn(I*c*x^n)*csgn(I*c)+1/1155*b*x^5*(105*e^3*x^6+385*d*e^2*x^4+495*d^2*e*x^2+231*d^3)*ln(x^n)-1/22*
I*Pi*b*e^3*x^11*csgn(I*x^n)*csgn(I*c*x^n)*csgn(I*c)-3/14*I*Pi*b*d^2*e*x^7*csgn(I*x^n)*csgn(I*c*x^n)*csgn(I*c)-
1/22*I*Pi*b*e^3*x^11*csgn(I*c*x^n)^3-1/10*I*Pi*b*d^3*x^5*csgn(I*c*x^n)^3-1/10*I*Pi*b*d^3*x^5*csgn(I*x^n)*csgn(
I*c*x^n)*csgn(I*c)-1/25*b*d^3*n*x^5-1/121*b*e^3*n*x^11+3/14*I*Pi*b*d^2*e*x^7*csgn(I*x^n)*csgn(I*c*x^n)^2+1/6*I
*Pi*b*d*e^2*x^9*csgn(I*c*x^n)^2*csgn(I*c)+3/14*I*Pi*b*d^2*e*x^7*csgn(I*c*x^n)^2*csgn(I*c)-1/6*I*Pi*b*d*e^2*x^9
*csgn(I*c*x^n)^3+1/22*I*Pi*b*e^3*x^11*csgn(I*x^n)*csgn(I*c*x^n)^2+1/22*I*Pi*b*e^3*x^11*csgn(I*c*x^n)^2*csgn(I*
c)-3/49*b*d^2*e*n*x^7-1/27*b*d*e^2*n*x^9+1/10*I*Pi*b*d^3*x^5*csgn(I*c*x^n)^2*csgn(I*c)-3/14*I*Pi*b*d^2*e*x^7*c
sgn(I*c*x^n)^3+1/10*I*Pi*b*d^3*x^5*csgn(I*x^n)*csgn(I*c*x^n)^2

________________________________________________________________________________________

maxima [A]  time = 0.49, size = 143, normalized size = 1.43 \[ -\frac {1}{121} \, b e^{3} n x^{11} + \frac {1}{11} \, b e^{3} x^{11} \log \left (c x^{n}\right ) + \frac {1}{11} \, a e^{3} x^{11} - \frac {1}{27} \, b d e^{2} n x^{9} + \frac {1}{3} \, b d e^{2} x^{9} \log \left (c x^{n}\right ) + \frac {1}{3} \, a d e^{2} x^{9} - \frac {3}{49} \, b d^{2} e n x^{7} + \frac {3}{7} \, b d^{2} e x^{7} \log \left (c x^{n}\right ) + \frac {3}{7} \, a d^{2} e x^{7} - \frac {1}{25} \, b d^{3} n x^{5} + \frac {1}{5} \, b d^{3} x^{5} \log \left (c x^{n}\right ) + \frac {1}{5} \, a d^{3} x^{5} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x^4*(e*x^2+d)^3*(a+b*log(c*x^n)),x, algorithm="maxima")

[Out]

-1/121*b*e^3*n*x^11 + 1/11*b*e^3*x^11*log(c*x^n) + 1/11*a*e^3*x^11 - 1/27*b*d*e^2*n*x^9 + 1/3*b*d*e^2*x^9*log(
c*x^n) + 1/3*a*d*e^2*x^9 - 3/49*b*d^2*e*n*x^7 + 3/7*b*d^2*e*x^7*log(c*x^n) + 3/7*a*d^2*e*x^7 - 1/25*b*d^3*n*x^
5 + 1/5*b*d^3*x^5*log(c*x^n) + 1/5*a*d^3*x^5

________________________________________________________________________________________

mupad [B]  time = 3.73, size = 113, normalized size = 1.13 \[ \ln \left (c\,x^n\right )\,\left (\frac {b\,d^3\,x^5}{5}+\frac {3\,b\,d^2\,e\,x^7}{7}+\frac {b\,d\,e^2\,x^9}{3}+\frac {b\,e^3\,x^{11}}{11}\right )+\frac {d^3\,x^5\,\left (5\,a-b\,n\right )}{25}+\frac {e^3\,x^{11}\,\left (11\,a-b\,n\right )}{121}+\frac {3\,d^2\,e\,x^7\,\left (7\,a-b\,n\right )}{49}+\frac {d\,e^2\,x^9\,\left (9\,a-b\,n\right )}{27} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(x^4*(d + e*x^2)^3*(a + b*log(c*x^n)),x)

[Out]

log(c*x^n)*((b*d^3*x^5)/5 + (b*e^3*x^11)/11 + (3*b*d^2*e*x^7)/7 + (b*d*e^2*x^9)/3) + (d^3*x^5*(5*a - b*n))/25
+ (e^3*x^11*(11*a - b*n))/121 + (3*d^2*e*x^7*(7*a - b*n))/49 + (d*e^2*x^9*(9*a - b*n))/27

________________________________________________________________________________________

sympy [B]  time = 32.87, size = 223, normalized size = 2.23 \[ \frac {a d^{3} x^{5}}{5} + \frac {3 a d^{2} e x^{7}}{7} + \frac {a d e^{2} x^{9}}{3} + \frac {a e^{3} x^{11}}{11} + \frac {b d^{3} n x^{5} \log {\relax (x )}}{5} - \frac {b d^{3} n x^{5}}{25} + \frac {b d^{3} x^{5} \log {\relax (c )}}{5} + \frac {3 b d^{2} e n x^{7} \log {\relax (x )}}{7} - \frac {3 b d^{2} e n x^{7}}{49} + \frac {3 b d^{2} e x^{7} \log {\relax (c )}}{7} + \frac {b d e^{2} n x^{9} \log {\relax (x )}}{3} - \frac {b d e^{2} n x^{9}}{27} + \frac {b d e^{2} x^{9} \log {\relax (c )}}{3} + \frac {b e^{3} n x^{11} \log {\relax (x )}}{11} - \frac {b e^{3} n x^{11}}{121} + \frac {b e^{3} x^{11} \log {\relax (c )}}{11} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x**4*(e*x**2+d)**3*(a+b*ln(c*x**n)),x)

[Out]

a*d**3*x**5/5 + 3*a*d**2*e*x**7/7 + a*d*e**2*x**9/3 + a*e**3*x**11/11 + b*d**3*n*x**5*log(x)/5 - b*d**3*n*x**5
/25 + b*d**3*x**5*log(c)/5 + 3*b*d**2*e*n*x**7*log(x)/7 - 3*b*d**2*e*n*x**7/49 + 3*b*d**2*e*x**7*log(c)/7 + b*
d*e**2*n*x**9*log(x)/3 - b*d*e**2*n*x**9/27 + b*d*e**2*x**9*log(c)/3 + b*e**3*n*x**11*log(x)/11 - b*e**3*n*x**
11/121 + b*e**3*x**11*log(c)/11

________________________________________________________________________________________